import storage from "@/utils/storage";
import {
	http,
	Method
} from "@/utils/request.js";


/**
 * 计算现金额
 */
export function calculationwith(params) {
	return http.request({
		url: "/member/withdrawApply/getFeesum",
		method: Method.GET,
		params,
		needToken: true
	});
}

/**
 * 推广计算现金额
 */
export function calculatuiguang(params) {
	return http.request({
		url: "/member/withdrawApply/countPrice",
		method: Method.GET,
		params,
		needToken: true
	});
}

/**
 * 查询钱包余额
 */
export function getCountSum(params) {
	return http.request({
		url: "/members/wallet",
		method: Method.GET,
		params,
		needToken: true
	});
}

/**
 * 提现
 */
export function withdrawApply(params) {
	return http.request({
		url: "/member/withdrawApply/getsum",
		method: Method.GET,
		params,
		needToken: true
	});
}
/**
 * 推广提现
 */
export function withdrawtixian(params) {
	return http.request({
		url: "/members/wallet/withdrawal",
		method: Method.POST,
		params,
		needToken: true
	});
}

/**
 * 销售提现明细
 */
export function withdrawlist(params) {
	return http.request({
		url: "/member/withdrawApply/queryList",
		method: Method.GET,
		params,
		needToken: true
	});
}

/**
 * 撤销销售提现
 */
export function withdrawgetsums(params) {
	return http.request({
		url: "/member/withdrawApply/getsums",
		method: Method.GET,
		params,
		needToken: true
	});
}
/**
 * 撤销推广提现
 */
export function applycheixao(params) {
	return http.request({
		url: "/member/withdrawApply",
		method: Method.POST,
		params,
		needToken: true
	});
}

/**
 * 加盟政策列表
 */
export function articlelist(params) {
	return http.request({
		url: "/article",
		method: Method.GET,
		params,
		needToken: true
	});
}

/**
 * 加盟政策详情
 */
export function articledet(id) {
	return http.request({
		url: "/article/get/" + id,
		method: Method.GET,
		needToken: true
	});
}


